//
//  WDDetailImageCell.m
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/2/22.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import "WDDetailImageCell.h"
#import "WDData.h"

@interface WDDetailImageCell ()
@property (weak, nonatomic) IBOutlet UIImageView *materView;

@end

@implementation WDDetailImageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.materView.contentMode = UIViewContentModeScaleAspectFill;
    self.materView.clipsToBounds = YES;
    
    self.materView.layer.borderWidth = 0.5f;
    self.materView.layer.borderColor = ColorForRGB(0xa0a0a0).CGColor;
    
}

- (void)setMaterData:(WDData *)materData
{
    _materData = materData;
    
    [self.materView sd_setImageWithURL:[NSURL URLWithString:materData.thumbnail] placeholderImage:WDDefaultImage];
}

@end
